package com.steve.summary.seata.service;

import com.steve.summary.seata.dto.OrderDTO;
import com.steve.summary.seata.entity.Order;

/**
 * @Author: STEVE
 * @Description: 订单服务接口
 * @since: 2025-07-08
 */
public interface OrderService {

    /**
     * 创建分布式事务订单
     *
     * @param orderDTO 订单传输对象
     */
    void createOrder(OrderDTO orderDTO);

    /**
     * 获取订单详情
     *
     * @param orderId 订单ID
     * @return 订单详情
     */
    Order getOrderDetail(Long orderId);

    /**
     * 更新订单状态
     *
     * @param orderId 订单ID
     * @param status  新状态
     */
    void updateOrderStatus(Long orderId, Integer status);

}
